Skip to content

[PWGHF] annalysis task for the v0 pt of the charm-bulk#15941

Open
wuctlby wants to merge 16 commits intoAliceO2Group:masterfrom
wuctlby:charmbulk
Open

[PWGHF] annalysis task for the v0 pt of the charm-bulk#15941
wuctlby wants to merge 16 commits intoAliceO2Group:masterfrom
wuctlby:charmbulk

Conversation

@wuctlby
Copy link
Copy Markdown
Contributor

@wuctlby wuctlby commented Apr 23, 2026

Dear all,
This PR is about the analysis task of charm-bulk correlation, probing the radio-flow fluctuation, the underlying radial expansion, and the medium’s properties. And this task will be iterated in the near future.
Please let me know if you have any comments or suggestions!
Thanks a lot!
Also tagging @arossi81 and @mfaggin .

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

O2 linter results: ❌ 0 errors, ⚠️ 0 warnings, 🔕 2 disabled

@github-actions github-actions Bot changed the title annalysis task for the v0 pt of the charm-bulk [PWGHF] annalysis task for the v0 pt of the charm-bulk Apr 23, 2026
wuctlby added a commit to wuctlby/O2Physics that referenced this pull request Apr 23, 2026
Please consider the following formatting changes to AliceO2Group#15941
@stefanopolitano
Copy link
Copy Markdown
Collaborator

Hi @wuctlby ! Thanks for the development. This is very interesting, however it was already implemented in another task (https://github.com/AliceO2Group/O2Physics/blob/master/PWGHF/D2H/Tasks/taskPtFlucCharmHadrons.cxx). (Tagging @prottayCMT who is the main analyser)

@wuctlby wuctlby marked this pull request as draft April 23, 2026 14:33
wuctlby and others added 3 commits April 28, 2026 14:10
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
wuctlby added a commit to wuctlby/O2Physics that referenced this pull request Apr 29, 2026
Please consider the following formatting changes to AliceO2Group#15941
Co-authored-by: Copilot <copilot@github.com>
Please consider the following formatting changes to AliceO2Group#15941
Comment thread PWGHF/D2H/Tasks/taskPtFlucCharmHadrons.cxx Outdated
Comment thread PWGHF/D2H/Tasks/taskPtFlucCharmHadrons.cxx
Comment on lines +226 to +229
return {HfHelper::invMassD0ToPiK(cand), cand.isSelD0bar() ? 3 : 1}; // 3: reflected D0bar, 1: pure D0 excluding reflected D0bar
} else if (channel == DecayChannel::D0ToKPi) {
return {HfHelper::invMassD0barToKPi(cand), cand.isSelD0() ? 3 : 2}; // 3: reflected D0, 2: pure D0bar excluding reflected D0
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do these hard-coded numbers mean?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @vkucera , thanks a lot for your comments! These hard-coded numbers mean reconstructed candidates are D0 or D0bar or reflected D0 (reconstructed as both D0 and D0bar)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You cannot know that in real data.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we can not know that in real data. So, here we check whether it is a reflected D0 by seeing if it is reconstructed as D0 and D0bar at the same time.
For example, the channel is D0ToPiK in the if condition, which means this candidate was reconstructed as D0, but we also check whether it is reconstructed as D0bar by isSelD0bar(). If true, we know then it is a reflected D0bar (but of course, we still don't know it is reflected D0 or D0bar in real, just with respect to the current hypothesis)
PS: I don't know who was the first to implement this, but it seems all D0 relevant tasks used this sign variable

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please point me to the examples.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • It is a signal with respect to this D0 hypothesis, not to the background. If you look at the next line https://github.com/AliceO2Group/O2Physics/blob/b8c9f4017f0da69bf887e9f45837dda810cbb968/PWGHF/D2H/Tasks/taskD0.cxx#L579|, there is also a similar check. In this case, it's used to mark the particle and anti-particle.
  • Yes, this is what I mean. So, in the example I mentioned, I said it is a reflected D0bar with respect to the current D0 hypothesis. I didn't say it's a reflection. It can tell us the candidate's sign. For D0, it's D0, D0bar, or reflected D0/D0bar (which means it was reconstructed as both D0 and D0bar)
  • Yes, this should be better.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I said it is a reflected D0bar with respect to the current D0 hypothesis.

Sorry but this statement does not make any sense. A reflected D0 is a D0 particle selected as a D0bar candidate. There is no "with respect to" in reflections. If you cannot know what particle you have, you cannot flag it as a reflection. As simple as that.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "candidate's sign"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I fully agree with what you said, A reflected D0 is a D0 particle selected as a D0bar candidate.. We can think of it this way: the reflected here means a candidate is reconstructed as D0 and D0bar. The opposite case, Pure, means a candidate is reconstructed only as D0 or only as D0bar (both cases could also be the reflection, I fully agree with what you said, we cannot know that in data). So, in this sense, this flag is to mark particle and anti-particle.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean by "candidate's sign"?

I just use this word as what other tasks did. There is no sign of the electric charge for D0 itself. Only particle and anti-particle for D0.

Comment thread PWGHF/D2H/Tasks/taskPtFlucCharmHadrons.cxx Outdated
Comment thread PWGHF/D2H/Tasks/taskPtFlucCharmHadrons.cxx Outdated
Comment thread PWGHF/D2H/Tasks/taskPtFlucCharmHadrons.cxx Outdated
wuctlby and others added 2 commits April 29, 2026 14:59
@wuctlby
Copy link
Copy Markdown
Contributor Author

wuctlby commented Apr 29, 2026

Hi @stefanopolitano and @prottayCMT ,
I deleted another task and merged the implementation into this taskPtFlucCharmHadrons. Since @SwatiSaha-1997 is currently working on it, so I used a flag to split them. We can refactor the code after the analysis is stable and clear.
Please let me know if you have any comments!
Thanks a lot!
Also tagging @arossi81 and @mfaggin

Please consider the following formatting changes to AliceO2Group#15941
@vkucera
Copy link
Copy Markdown
Collaborator

vkucera commented Apr 29, 2026

Please do not mark my comments as resolved. It is explicitly mentioned in the guidelines.

@wuctlby wuctlby marked this pull request as ready for review April 29, 2026 14:42
Co-authored-by: Copilot <copilot@github.com>
@prottayCMT
Copy link
Copy Markdown
Collaborator

Hi @stefanopolitano and @prottayCMT , I deleted another task and merged the implementation into this taskPtFlucCharmHadrons. Since @SwatiSaha-1997 is currently working on it, so I used a flag to split them. We can refactor the code after the analysis is stable and clear. Please let me know if you have any comments! Thanks a lot! Also tagging @arossi81 and @mfaggin

@wuctlby and @arossi81 Fine from mine side

Comment thread PWGHF/D2H/Tasks/taskPtFlucCharmHadrons.cxx
Co-authored-by: Copilot <copilot@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pwghf PWG-HF

Development

Successfully merging this pull request may close these issues.

6 participants